home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
17 Bit Software 3: The Continuation
/
17-Bit_The_Continuation_Disc.iso
/
files
/
nz18.dms
/
nz18.adf
/
BASIC to Hardware
/
ProtectCheck
< prev
next >
Wrap
Text File
|
1993-12-03
|
383b
|
20 lines
'This program checks to see if a disk is write protected
'From J.Murphy
'Checks Track0, Ready and WriteProtect signals
PRINT "Write protect check"
PRINT "Insert a disk..."
a&=&HBFE*&H1000+1:REM Address of CIAA
start:
p=PEEK(a&)
IF ((p AND 32)=0) AND ((p AND 16)=0) THEN
IF (p AND 8)=0 THEN
PRINT "Write protected"
ELSE
PRINT "Write enabled"
END IF
END IF
GOTO start